<?php
/**
 * 系統名稱: Lotto 系統
 * 檔案說明: 專案管理-修改
 * $Author$
 * $Id$
 *
 */
$data = $_data["data"];
if(!isCorrectAccount($data["Account_x"])){
	$GLOBALS["errormessage"] = $_strSameTip["ErrorAccount"];
	ErrMsgOutputHTML("Error", "", 1);
}

$arrUser = getUserDataArrayByAccount($data["Account_x"]);
if($arrUser === false){
	ErrMsgOutputHTML("Error", "", 1);
}

if(sizeof($arrUser) > 0){
	$GLOBALS["errormessage"] = $_strOperator["MemAccount"].$_strOperator["AccountExist"];//"已使用中，請更改！";
	ErrMsgOutputHTML("Error", "", 1);
}

if(!preg_match("/".$data["MemberGroup_x"]."/", $_stMemGroup)){
	$GLOBALS["errormessage"] = $_strOperator["NoPower"]; //"很抱歉！您沒有此程式的使用權限！";
	ErrMsgOutputHTML("Error", "", 1);
}

$data["AddDate_a"] = "CURRENT_DATE()";
$data["AddTime_b"] = "CURRENT_TIME()";
if(InsertSQL( $data, "bet_Member", $data_o)){
	@mysql_close($$_Conn);
	header("Location: ".basename($_SERVER["PHP_SELF"])."?op=List");
}
ErrMsgOutputHTML("Error", "", 1);
?>